import request from '@/api/request.js'

// 获取餐厅列表
export function getRestaurantList() {
    return request.get('/restaurant')
}

// 创建餐厅
export function createRestaurant(data) {
    return request.post('/restaurant', data)
}

// 删除餐厅
export function deleteRestaurant(id) {
    return request.delete(`/restaurant/${id}`)
}

// 更新餐厅
export function updateRestaurant(id, data) {
    return request.put(`/restaurant/${id}`, data)
}

// 获取餐厅详情
export function getRestaurantDetail(id) {
    return request.get(`/restaurant/${id}`)
}
